describe('index', () => {
	let page, originTestingNum;
	beforeAll(async () => {
		page = await program.reLaunch('/pages/index/index');
		await page.waitFor('view');
		originTestingNum = await page.callMethod('getTestingNum');
	});

	it('get uniPage', async () => {
		page = await program.navigateTo('/pages/index/setup-get-uniPage');
		await page.waitFor('view');
		await page.waitFor(1000);
		const testingNum = await page.data('testingNum');
		expect(testingNum).toBe(originTestingNum + 1);
	});
	
	afterAll(async () => {
		page = await program.reLaunch('/pages/index/index');
		await page.waitFor('view');
		await page.callMethod('setTestingNum', originTestingNum);
	});
});